<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" import="java.util.*"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath() + "/";
//response.sendRedirect("common/login");
%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>FinanceOrg</title>
			<script type="text/javascript" src="${path }/resource/js/jquery-1.8.3.min.js"></script>
			<script type="text/javascript" src="${path }/resource/js/mytools.js"></script>
			<script type="text/javascript" src="${path }/resource/layui/layui.js" ></script>
			<link rel="stylesheet" href="${path }/resource/layui/css/layui.css" />
			<script type="text/javascript" src="${path }/resource/js/ajaxfileupload.js"></script>
	</head>
<body>
	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
	  <legend>FinanceOrg</legend>
	</fieldset>
	<form  class="layui-form layui-form-pane" onsubmit="javascripr:return false;" id="from1">
		<div class="layui-form-item">
			<input type="hidden" name="id" value="${obj.id}" id="id"/> <!--隐藏域id el表达式获取 -->
			<div class="layui-inline">
      			<label class="layui-form-label">机构名称:</label>
      			<div class="layui-input-inline">
					<input type="text" name="orgName"  class="layui-input"  readonly="readonly" value="${obj.orgName}" id="orgName"/>
	 			</div>
			</div>
			<div class="layui-inline">
      			<label class="layui-form-label">机构类型:</label>
      			<div class="layui-input-inline">
      			<input type="text" name="orgType"  class="layui-input"  readonly="readonly" value="${obj.orgType}" id="orgType"/>
	 			</div>
			</div>
			<div class="layui-inline">
      			<label class="layui-form-label">机构代码:</label>
      			<div class="layui-input-inline">
					<input type="text" name="orgCode" class="layui-input" readonly="readonly" value="${obj.orgCode}" id="orgCode"/>
	 			</div>
			</div>
			</div>
			
	<div class="layui-form-item">
			<div class="layui-inline">
      			<label class="layui-form-label">所属区域:</label>
      	<div class="layui-input-inline">
      	<input type="text" name="area" class="layui-input" readonly="readonly" value="${obj.area}" />
	 	</div>
	 	<div class="layui-input-inline">
	 		<input type="text" name="zone" class="layui-input" readonly="readonly" value="${obj.zone}" />
		</div>
		</div>
		</div>
			<div class="layui-form-item">
			<div class="layui-inline">
      			<label class="layui-form-label">成立日期:</label>
      			<div class="layui-input-inline">
      			<input type="text" name="upDate" class="layui-input" readonly="readonly" value="${obj.upDate}" />
	 			</div>
			</div>
			<div class="layui-inline">
      			<label class="layui-form-label">法定人:</label>
      			<div class="layui-input-inline">
      			
					<input type="text" name="lawRepresent"  readonly="readonly" class="layui-input" value="${obj.lawRepresent}" id="lawRepresent"/>
	 			</div>
			</div>
			<div class="layui-inline">
      			<label class="layui-form-label">注册资金:</label>
      			<div class="layui-input-inline">
					<input type="text" name="regMoney"  readonly="readonly" class="layui-input" 
					<c:if test="${obj.regMoney ne null}">
					value="${obj.regMoney}"
					</c:if>
					<c:if test="${obj.regMoney eq null}">
					value="0"
					</c:if>
					id="regMoney"/>
	 			</div>
			</div>
			</div>
				
			<div class="layui-form-item">	
			<div class="layui-inline">
      			<label class="layui-form-label">工商注册号:</label>
      			<div class="layui-input-inline">
					<input type="text" name="icbcRegNo"  readonly="readonly" class="layui-input" value="${obj.icbcRegNo}" id="icbcRegNo"/>
	 			</div>
			</div>
			<div class="layui-inline">
      			<label class="layui-form-label">国税务登记号:</label>
      			<div class="layui-input-inline">
					<input type="text" name="gtaxNo"  readonly="readonly" class="layui-input" value="${obj.gtaxNo}" id="gtaxNo"/>
	 			</div>
			</div>
			<div class="layui-inline">
      			<label class="layui-form-label">地税务登记号:</label>
      			<div class="layui-input-inline">
					<input type="text" name="dtaxNo"  readonly="readonly" class="layui-input" value="${obj.dtaxNo}" id="dtaxNo"/>
	 			</div>
			</div>
			</div>
				<div class="layui-form-item  layui-form-text">
      			<label class="layui-form-label">经营范围:</label>
      			<div class="layui-input-block">
					<textarea   name="manageScope" readonly="readonly"  class="layui-textarea" value="${obj.manageScope}"  ></textarea>
	 			</div>
	 			</div>
	 		<div class="layui-form-item layui-form-text">
      			<label class="layui-form-label layui-form-text">机构介绍:</label>
      			<div class="layui-input-block">
					<textarea  name="orgIntro" readonly="readonly"   class="layui-textarea" value="${obj.orgIntro}" id="orgIntro"></textarea>
	 			</div>
			</div>
			<div class="layui-form-item layui-form-text">
      			<label class="layui-form-label">主要产品:</label>
      			<div class="layui-input-block">
					<input type="text" name="mainProduct"  readonly="readonly"  class="layui-textarea" value="${obj.mainProduct}" id="mainProduct"/>
	 			</div>
			</div>
			<div class="layui-form-item">
			<div class="layui-inline">
      			<label class="layui-form-label">机构logo:</label>
		      <div class="layui-input-inline">
		      	<div style="width:60px;height:60px;border: 1px solid" >
				 <img alt="" src="${obj.orgLogo}" style="width:60px;height:60px;" id="orgLogoimg" />
				</div>
			 </div>
			</div>
			<div class="layui-inline">
      			<label class="layui-form-label">注册地址:</label>
      			<div class="layui-input-inline">
					<input type="text" name="regAddr" readonly="readonly"  class="layui-input" value="${obj.regAddr}" id="regAddr"/>
	 			</div>
			</div>
			<div class="layui-inline">
      			<label class="layui-form-label">联系电话:</label>
      			<div class="layui-input-inline">
					<input type="text" name="orgTel" readonly="readonly" class="layui-input" value="${obj.orgTel}" id="orgTel"/>
	 			</div>
			</div>
			</div>
			<div class="layui-form-item">
			<div class="layui-inline">
      			<label class="layui-form-label">传真:</label>
      			<div class="layui-input-inline">
					<input type="text" name="orgFax" readonly="readonly" class="layui-input" value="${obj.orgFax}" id="orgFax"/>
	 			</div>
			</div>
			<div class="layui-inline">
      			<label class="layui-form-label">邮箱:</label>
      			<div class="layui-input-inline">
					<input type="text" name="orgEmail" readonly="readonly" class="layui-input" value="${obj.orgEmail}" id="orgEmail" />
	 			</div>
			</div>
			<div class="layui-inline">
      			<label class="layui-form-label">网站:</label>
      			<div class="layui-input-inline">
					<input type="text" name="orgSide"  readonly="readonly" class="layui-input" value="${obj.orgSide}" id="orgSide"/>
	 			</div>
			</div>
			</div>
			<div class="layui-form-item">
			<div class="layui-inline">
      			<label class="layui-form-label">联系人:</label>
      			<div class="layui-input-inline">
					<input type="text" name="linkman"  readonly="readonly" class="layui-input" value="${obj.linkman}" id="linkman"/>
	 			</div>
			</div>
			<div class="layui-inline">
      			<label class="layui-form-label">邮政编码:</label>
      			<div class="layui-input-inline">
					<input type="text" name="zipCode" readonly="readonly" class="layui-input" value="${obj.zipCode}" id="zipCode"/>
	 			</div>
			</div>
			<div class="layui-inline">
      			<label class="layui-form-label">英文名称:</label>
      			<div class="layui-input-inline">
					<input type="text" name="engName" readonly="readonly" class="layui-input" value="${obj.engName}" id="engName"/>
	 			</div>
			</div>
			</div>
			<div class="layui-form-item">
			<div class="layui-inline">
      			<label class="layui-form-label">办公地点:</label>
      			<div class="layui-input-inline">
					<input type="text" name="jobAddr" readonly="readonly" readonly="readonly" class="layui-input" value="${obj.jobAddr}" id="jobAddr"/>
	 			</div>
			</div>
		</div>
 <div class="layui-form-item">
    <div class="layui-input-block">
      <input  type="button" value="审核通过"  class="layui-btn"  onclick="pass(this)">
      <input type="reset" class="layui-btn layui-btn-danger" value="审核不通过" onclick="pass(this)">
    </div>
  </div>
	</form>
	<script type="text/javascript">
	function pass(obj){
		var status=0;
		if(obj.value=='审核通过'){
			status=1;
		}else{
			status=2;
		}
		var data = {'orgStatus':status,'id':$("#id").val(),'orgEmail':$("#orgEmail").val()};
		console.log(data);
		 $.ajax({
	  		'type':'post',
	  		'url':'${path }/user/finance/FinanceOrg/check',
	  		'data':data,
	  		'dataType':'json',
	  		'success':function(data,status){
	  			parent.mjs.refCurr();
				parent.layer.closeAll();
	  		}
	  	}); 
	}
		</script>
	</body>
</html>
